
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>Introduction · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        <meta name="identifier" content="001" scheme="ISBN">
        
    
    <link rel="stylesheet" href="gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-search-pro/search.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-code/plugin.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-theme-lou/lou.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">

    
    

    </head>
    <body>
         
<div class="donate-modal modal">
  <div class="modal-header">
    <div>
      <span>
        <img
          id="modal-avatar"
          class="modal-avatar"
          src="https://img2022.cnblogs.com/blog/1319275/202201/1319275-20220126165505175-58751402.png"
        />
      </span>
      <span id="nickname"> firstelfin </span>
      <p class="modal-close close" onclick="closeDonateModal()">×</p>
    </div>
    <div class="message">
      <div class="tip">
        <i></i>
        <span>随意打赏，但不要超过一顿早餐钱！</span>
      </div>
    </div>
  </div>
  <div class="modal-content">
    <div class="modal-pay-way">
      <div id="wxpay" onclick="showDonateImg(0)">
        <input
          type="radio"
          name="pay-way"
          value="wxpay"
          class="zs-type"
          checked="checked"
        />
        <span>
          <img
            id="wxpay-logo"
            src=""
          />
        </span>
      </div>
      <div id="alipay" onclick="showDonateImg(1)">
        <input type="radio" name="pay-way" value="alipay" class="zs-type" />
        <span>
          <img
            id="alipay-logo"
            src=""
          />
        </span>
      </div>
    </div>
    <div class="modal-pay-qrcode">
      <img id="wxpay-code" src="" />
      <img
        id="alipay-code"
        src="你的支付宝收款码地址"
        hidden
      />
    </div>
  </div>
</div>
<div class="mask"></div>


<div class="book">
  <div class="header-inner">
    <!-- LOGO -->
    <div class="logo"></div>
    <span class="title"></span>

    <!-- Search -->
    
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>


    <!-- Nav -->
    <ul class="header-nav">
      <li>
        <a href="https://www.baidu.com" target="_blank">百度一下</a>
      </li><li>
        <a href="https://www.cnblogs.com/dan-baishucaizi/" target="_blank">博客园</a>
      </li>
    </ul>
  </div>

  <div class="book-summary">
    <div class="book-summary-title">文档目录</div>
     
    <nav role="navigation">


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter active" data-level="1.1" data-path="./">
            
                <a href="./">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>

</nav>
     
  </div>

  <!-- Content nav -->
  <div class="book-anchor">
    <div class="book-anchor-title"></div>

    <div class="book-anchor-body"></div>
  </div>

  <div class="book-body">
    
    <div class="body-inner">
       

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="." >Introduction</a>
    </h1>
</div>



      <div class="page-wrapper" tabindex="-1" role="main">
        <div class="page-inner">
          
<div id="book-search-results">
    <div class="search-noresults">
    
          <section class="normal markdown-section">
             <p>
    <center><h1 id="pytorch&#x5B66;&#x4E60;&#x7B14;&#x8BB0;">pytorch&#x5B66;&#x4E60;&#x7B14;&#x8BB0;</h1></center>
    </p><p name="top" id="top" align="center">
        <b>&#x4F5C;&#x8005;&#xFF1A;</b><b><a href="https://www.cnblogs.com/dan-baishucaizi/" target="_blank">elfin</a></b>&#xA0;&#xA0;
    </p>
<p></p>

<p>  &#x4ECA;&#x5E74;&#x662F;2022&#x5E74;&#xFF0C;&#x864E;&#x5E74;&#xFF0C;&#x606D;&#x559C;&#x5927;&#x5BB6;&#x864E;&#x5E74;&#x5409;&#x7965;&#x3001;&#x864E;&#x864E;&#x751F;&#x5A01;&#x3002;</p>
<h1 id="&#x4E00;&#x3001;pytorch&#x4E0E;&#x5B83;&#x7684;&#x597D;&#x57FA;&#x53CB;">&#x4E00;&#x3001;pytorch&#x4E0E;&#x5B83;&#x7684;&#x597D;&#x57FA;&#x53CB;</h1>
<p>&#x200B;      &#x8FDB;&#x5165;&#x6B63;&#x9898;&#xFF0C;&#x6211;&#x4EEC;&#x5E38;&#x4F7F;&#x7528;&#x7684;AI&#x5F00;&#x53D1;&#x5DE5;&#x5177;&#x6709;Tensorflow&#x3001;Pytorch&#x3001;Keras&#x3001;PaddlePaddle&#x7B49;&#x3002;&#x9996;&#x5148;&#x662F;TF(Tensorflow)&#xFF0C;&#x5728;&#x7814;&#x7A76;&#x751F;&#x9636;&#x6BB5;&#x6211;&#x4EEC;&#x4E3B;&#x8981;&#x662F;&#x4F7F;&#x7528;&#x8FD9;&#x4E2A;&#x5E73;&#x53F0;&#x8FDB;&#x884C;&#x4EBA;&#x5DE5;&#x667A;&#x80FD;&#x7B97;&#x6CD5;&#x3001;&#x6280;&#x672F;&#x7684;&#x5B66;&#x4E60;&#x7814;&#x7A76;&#xFF0C;&#x5B83;&#x672C;&#x8EAB;&#x662F;&#x6BD4;&#x8F83;&#x5927;&#x7684;&#xFF0C;&#x96C6;&#x6210;&#x4E86;&#x5F88;&#x591A;&#x5E38;&#x89C1;&#x7684;&#x7EC4;&#x4EF6;&#xFF0C;&#x4E5F;&#x652F;&#x6301;&#x81EA;&#x5B9A;&#x4E49;&#x7B97;&#x6CD5;&#x7EC4;&#x4EF6;&#xFF0C;&#x5BF9;&#x4E8E;&#x521D;&#x5B66;&#x8005;&#x6765;&#x8BF4;&#x662F;&#x4E00;&#x4E2A;&#x592F;&#x5B9E;&#x57FA;&#x7840;&#x7684;&#x4F18;&#x79C0;&#x5E73;&#x53F0;&#x3002;&#x4F46;&#x662F;&#x5BF9;&#x4E8E;&#x5F88;&#x591A;&#x4EBA;&#x6765;&#x8BF4;&#x5B83;&#x4E5F;&#x5F88;&#x5934;&#x75BC;&#xFF0C;&#x56E0;&#x4E3A;&#x5B83;&#x7684;&#x6613;&#x7528;&#x6027;&#x4F1A;&#x8F83;&#x5DEE;&#x4E00;&#x4E9B;&#xFF0C;&#x5373;&#x5B83;&#x7684;&#x5C01;&#x88C5;&#x6BD4;&#x8F83;&#x57FA;&#x7840;&#xFF0C;&#x5B9E;&#x73B0;&#x4E00;&#x4E9B;&#x5E38;&#x89C1;&#x64CD;&#x4F5C;&#x9700;&#x8981;&#x6211;&#x4EEC;&#x8BBE;&#x7F6E;&#x8F83;&#x591A;&#x7684;&#x4EE3;&#x7801;&#x5757;&#xFF0C;&#x65E9;&#x671F;&#x7684;TF&#x8FD8;&#x662F;&#x9759;&#x6001;&#x56FE;&#xFF0C;&#x6211;&#x73B0;&#x5728;&#x8FD8;&#x8BB0;&#x5F97;&#x8C03;&#x8BD5;&#x65F6;&#x7684;&#x5404;&#x79CD;&#x4E0D;&#x65B9;&#x4FBF;&#xFF01;&#x5176;&#x6B21;&#xFF0C;&#x662F;&#x4E07;&#x4F17;&#x77A9;&#x76EE;&#x3001;&#x540E;&#x8D77;&#x4E4B;&#x79C0;Pytorch&#x3002;Pytorch&#x662F;&#x8138;&#x4E66;AI&#x7814;&#x7A76;&#x9662;&#x53D1;&#x5E03;&#x7684;&#x4E00;&#x6B3E;&#x6DF1;&#x5EA6;&#x5B66;&#x4E60;&#x6846;&#x67B6;&#xFF0C;&#x7531;torch&#x53D1;&#x5C55;&#x800C;&#x6765;&#xFF0C;&#x652F;&#x6301;&#x4E30;&#x5BCC;&#x7684;API&#xFF0C;&#x4E0D;&#x7BA1;&#x4F60;&#x662F;python&#x8FD8;&#x662F;c++&#x90E8;&#x7F72;&#xFF0C;&#x90FD;&#x80FD;&#x591F;&#x5F88;&#x597D;&#x7B2C;&#x5B9E;&#x73B0;&#x3002;&#x4E0E;TF&#x76F8;&#x6BD4;&#xFF0C;&#x5B83;&#x662F;&#x57FA;&#x4E8E;&#x52A8;&#x6001;&#x56FE;&#xFF0C;&#x5728;&#x5EFA;&#x6A21;&#x3001;&#x4EE3;&#x7801;&#x4E66;&#x5199;&#x4E0A;&#x6709;&#x4E0D;&#x5C0F;&#x7684;&#x4FBF;&#x5229;&#x6027;&#xFF0C;&#x6613;&#x7528;&#x6027;&#x8F83;&#x597D;&#xFF0C;&#x5C01;&#x88C5;&#x7684;&#x7A0B;&#x5EA6;&#x4E5F;&#x6BD4;&#x8F83;&#x597D;&#xFF0C;&#x65E2;&#x4E0D;&#x4F1A;&#x5C01;&#x88C5;&#x7684;&#x592A;&#x5E95;&#x5C42;&#xFF0C;&#x4E5F;&#x4E0D;&#x4F1A;&#x592A;&#x9AD8;&#x7EA7;&#xFF0C;&#x5DE5;&#x7A0B;&#x5E08;&#x53C2;&#x4E0E;&#x611F;&#x4F1A;&#x6BD4;&#x8F83;&#x6070;&#x5F53;&#xFF0C;&#x53EF;&#x4EE5;&#x5728;&#x6709;&#x9650;&#x7684;&#x65F6;&#x95F4;&#x5185;&#x5C06;&#x66F4;&#x591A;&#x65F6;&#x95F4;&#x5B89;&#x6392;&#x5230;&#x7B97;&#x6CD5;&#x8BBE;&#x8BA1;&#x4E0A;&#xFF0C;&#x63D0;&#x9AD8;&#x5DE5;&#x4F5C;&#x6548;&#x7387;&#x3002;</p>
<p>&#x200B;      &#x8FD9;&#x91CC;&#x6211;&#x5927;&#x81F4;&#x4ECB;&#x7ECD;&#x4E86;Pytorch&#x7684;&#x4F18;&#x70B9;&#xFF0C;&#x5E76;&#x6CA1;&#x6709;&#x6DF1;&#x5C42;&#x6B21;&#x5730;&#x5206;&#x6790;&#x5176;&#x539F;&#x56E0;&#xFF0C;&#x56E0;&#x4E3A;&#x8FD9;&#x4E0D;&#x662F;&#x6211;&#x4EEC;&#x7684;&#x5173;&#x6CE8;&#x91CD;&#x70B9;&#xFF0C;&#x4E00;&#x4E24;&#x53E5;&#x8BDD;&#x4E5F;&#x8BF4;&#x4E0D;&#x6E05;&#x695A;&#x3002;&#x5173;&#x4E8E;&#x5176;&#x4ED6;&#x56FD;&#x5185;&#x7684;&#x6846;&#x67B6;&#xFF0C;&#x6709;&#x5F88;&#x591A;&#xFF0C;&#x4F46;&#x4E5F;&#x6709;&#x4E0D;&#x5C11;&#x7F3A;&#x70B9;&#xFF0C;&#x5982;&#x8FC7;&#x5EA6;&#x5C01;&#x88C5;&#xFF0C;&#x6846;&#x67B6;bug&#x8F83;&#x591A;&#x7B49;&#x3002;&#x5982;&#x679C;&#x662F;CV&#x65B9;&#x5411;&#x662F;&#x540C;&#x5B66;&#x53EF;&#x4EE5;&#x5173;&#x6CE8;&#x4E00;&#x4E0B;&#x65F7;&#x89C6;&#x7684;&#x6846;&#x67B6;&#x3002;</p>
<hr>
<p align="right">
    <b><a href="#top">Top</a></b><b>---</b><b><a href="#bottom">Bottom</a></b>
</p>

<h1 id="&#x4E8C;&#x3001;pytorch&#x4E13;&#x680F;&#x60F3;&#x5E72;&#x7684;&#x51E0;&#x4EF6;&#x5C0F;&#x4E8B;">&#x4E8C;&#x3001;Pytorch&#x4E13;&#x680F;&#x60F3;&#x5E72;&#x7684;&#x51E0;&#x4EF6;&#x5C0F;&#x4E8B;</h1>
<p>  &#x5728;&#x8FD9;&#x4E2A;&#x4E13;&#x680F;&#x6211;&#x4EEC;&#x5C06;&#x5173;&#x6CE8;&#x4E8E;AI&#x9879;&#x76EE;&#x7684;&#x5404;&#x4E2A;&#x73AF;&#x8282;&#x9700;&#x8981;&#x4F7F;&#x7528;&#x7684;&#x7EC4;&#x4EF6;&#xFF0C;&#x4EE5;&#x6B64;&#x5B9E;&#x73B0;&#x4F7F;&#x7528;&#x56FE;&#x4F8B;&#x3001;&#x52A8;&#x753B;&#x7B49;&#x624B;&#x6BB5;&#x76F4;&#x89C2;&#x5730;&#x8BF4;&#x660E;&#x9879;&#x76EE;&#x4E2D;&#x8BE5;&#x5982;&#x4F55;&#x4F7F;&#x7528;&#x53CA;&#x5176;&#x539F;&#x7406;&#x3002;</p>
<p><strong>&#x6211;&#x4EEC;&#x60F3;&#x5E72;&#x7684;&#x51E0;&#x4EF6;&#x5C0F;&#x4E8B;&#x4E3B;&#x8981;&#x6709;</strong>&#xFF1A;</p>
<ul>
<li>&#x6570;&#x636E;&#x7ED3;&#x6784;&#x8BF4;&#x660E;&#x4E0E;&#x6D4B;&#x8BD5;&#xFF1B;</li>
<li>&#x6570;&#x636E;&#x52A0;&#x8F7D;&#x76F8;&#x5173;&#x7EC4;&#x4EF6;&#x5206;&#x6790;&#xFF1B;</li>
<li>&#x6570;&#x636E;&#x8F6C;&#x6362;&#x76F8;&#x5173;&#x7EC4;&#x4EF6;&#x5206;&#x6790;&#xFF1B;</li>
<li>&#x6A21;&#x578B;&#x7684;&#x6846;&#x67B6;&#x642D;&#x5EFA;&#xFF1B;</li>
<li>&#x6A21;&#x578B;&#x4F18;&#x5316;&#x7B97;&#x5B50;&#x5206;&#x6790;</li>
<li>&#x6A21;&#x578B;&#x8BAD;&#x7EC3;&#x3001;&#x90E8;&#x7F72;&#x7B56;&#x7565;&#xFF1B;</li>
</ul>
<hr>
<p align="right">
    <b><a href="#top">Top</a></b><b>---</b><b><a href="#bottom">Bottom</a></b>
</p>

<h1 id="&#x4E09;&#x3001;&#x540E;&#x7EED;&#x6587;&#x7AE0;&#x76EE;&#x5F55;">&#x4E09;&#x3001;&#x540E;&#x7EED;&#x6587;&#x7AE0;&#x76EE;&#x5F55;</h1>
<p>&#x6301;&#x7EED;&#x66F4;&#x65B0;&#x4E2D;&#x2026;&#x2026;</p>
<hr>
<p align="right">
    <b><a href="#top">Top</a></b><b>---</b><b><a href="#bottom">Bottom</a></b>
</p>

<p id="bottom">
    <b>&#x5B8C;&#xFF01;</b>
</p>

 
          </section>
          
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>
 
          <div class="book-footer">
            
            <div class="donate">
              <div>『 赠人玫瑰 🌹 手有余香 』</div>
              <button class="donate-btn" onclick="showModal()">赞赏</button>
            </div>
             
            <div class="copyright"></div>
            
          </div>
          
        </div>
      </div>
      
    </div>

        
  </div>
  <script>
    function showModal() {
      document.getElementsByClassName("mask")[0].style.display = "block";
      document.getElementsByClassName("donate-modal")[0].style.display =
        "block";
    }
    // 切换赞赏码
    function showDonateImg(num) {
      let alipay = "";
      let wxpay = ""
      if(num){
        wxpay = "hidden"
      }else{
        alipay = "hidden"
      }
      document.getElementById("wxpay-code").hidden = wxpay;
      document.getElementById("alipay-code").hidden = alipay;
      document.getElementsByName("pay-way")[num].checked = "checked";
    }

    // 关闭赞赏框
    function closeDonateModal() {
      document.getElementsByClassName("mask")[0].style.display = "none";
      document.getElementsByClassName("donate-modal")[0].style.display = "none";
    }

    var gitbook = gitbook || [];
    gitbook.push(function () {
      gitbook.page.hasChanged({"page":{"title":"Introduction","level":"1.1","depth":1,"dir":"ltr"},"config":{"plugins":["-lunr","-search","search-pro","code","theme-lou","todo","expandable-chapters"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"todo":{},"search-pro":{},"code":{"copyButtons":true,"theme-lou":{"hide-elements":[".summary .gitbook-link"],"color":"#2096FF","book-anchor-title":"Search In the Article","copyright":{"author":"firstelfin"},"forbidCopy":false,"logo":"assets/logo.png","book-summary-title":"Article Directory","search-placeholder":"Input Keywords to Search","favicon":"assets/favicon.ico"},"expandable-chapters":{}},"theme-lou":{},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"titile":"pytorch学习指南","theme":"default","lang":"zh-cn","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"auther":"firstelfin","isbn":"001","variables":{"themeLou":{"nav":[{"target":"_blank","url":"https://www.baidu.com","name":"百度一下"},{"target":"_blank","url":"https://www.cnblogs.com/dan-baishucaizi/","name":"博客园"}],"footer":{"donate":{"button":"捐赠","avatar":"https://img2022.cnblogs.com/blog/1319275/202201/1319275-20220126165505175-58751402.png","nickname":"firstelfin","message":"随意打赏，但不要超过一顿早餐钱！","text":"『 赠人玫瑰 🌹 手有余香 』","wxpay":"","alipay":"你的支付宝收款码地址"},"copyright":true}}},"gitbook":"*","description":"pytorch官网通俗易懂的学习梳理"},"file":{"path":"README.md","mtime":"2022-01-26T09:51:20.996Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2022-01-26T10:16:41.365Z"},"basePath":".","book":{"language":""}});
    });
  </script>
</div>

        
    <script src="gitbook/gitbook.js"></script>
    <script src="gitbook/theme.js"></script>
    
        
        <script src="gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search-pro/search.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-code/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-theme-lou/lou.js"></script>
        
    

    </body>
</html>

